package com.example.compareprices;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity {
	public static final String LOG_TAG = "MainActivity";
	public static final int COMPARE_PRICES = 101;
	public static final int ENTER_TO_SHOP = 102;
	public static final int REFERENCES = 103;
	
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        //Handler of a button - enterToShop
        final Button enterToShop = (Button) findViewById(R.id.button7);
    	final Intent intent = new Intent();
		intent.setClass(this, ShopsActivity.class);
        enterToShop.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				startActivityForResult(intent,ENTER_TO_SHOP);
				//Log.i(LOG_TAG, "Handling enterToShop button - OK");
			}
		});
        
        
    } 


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
    
}
